package mapper;

import POJO.AppInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;


public interface AppInfoMapper {
    int totalCountAppInfo(AppInfo appInfo);

    List<AppInfo> selAllOrByCondition(@Param("appInfo") AppInfo appInfo, @Param("currPageNo") int currPageNo, @Param("pageSize") int pageSize);

    public int deleteAppInfo(int inId);//删除
    public int deleteAppVersion(int appId);//删除APP同时删除所有本APP版本信息
    public int AppInfoLowerShelf(int inId);//商品下架
    public int AddAppInfo(AppInfo appInfo);//添加APP基础信息
    public int UpdateAppInfo(AppInfo appInfo);//修改APP基础信息
    public AppInfo appInfoListId(int noid);//根据ID查询App信息
    public int UpdateAppInfoversionId(@Param("versionId") int versionId,@Param("fid") int fid);//修改APP版本号
    public int UpdateAppInfostatus(@Param("appId") int appId,@Param("status") int status);//根据Id修改App状态
}
